package git.soulbgm.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

/**
 * 告警次数记录表
 *
 * @author SoulBGM
 * @date 2020-11-18 10:03:05
 */
public class AlarmCountRecord {

    /**
     * 告警规则ID
     */
    @TableId
    private Long ruleId;

    /**
     * 资源名称
     */
    private String alarmObject;

    /**
     * 发生次数
     */
    private Integer occurrencesNumber;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    public AlarmCountRecord() {
    }

    public AlarmCountRecord(Long ruleId, String alarmObject) {
        this.ruleId = ruleId;
        this.alarmObject = alarmObject;
    }

    public Long getRuleId() {
        return ruleId;
    }

    public void setRuleId(Long ruleId) {
        this.ruleId = ruleId;
    }

    public String getAlarmObject() {
        return alarmObject;
    }

    public void setAlarmObject(String alarmObject) {
        this.alarmObject = alarmObject;
    }

    public Integer getOccurrencesNumber() {
        return occurrencesNumber;
    }

    public void setOccurrencesNumber(Integer occurrencesNumber) {
        this.occurrencesNumber = occurrencesNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}